/**
 * Created with CLion.
 * Description: 
 * User: cyber
 * Date: 2020-09-02
 * Time: 8:33
 */
#ifndef HEADER_H
#define HEADER_H
#include <iostream>
using namespace std;

struct func
{
    int &i;
    func(int &_i)
        : i(_i)
    {

    };

    void do_something(int &i)
    {
        cout<< i <<endl;
    }

    void operator()()
    {
        for (int j = 0; j < 1000000; ++j) {
            do_something(i);
        }
    }
};
#endif //HEADER_H
